import request from '@/config/axios'

//获得策略测试分页
export const pageStrategyTesting = (params) => {
  return request.getOriginal({
    url: '/amp/strategy-testing/page',
    params
  })
}

//创建策略测试
export const createStrategyTesting = (data) => {
  return request.post({
    url: '/amp/strategy-testing/create',
    data
  })
}

//批量创建策略测试
export const createStrategyTestingBatch = (data) => {
  return request.post({
    url: '/amp/strategy-testing/createBatch',
    data
  })
}
//更新策略测试
export const updateStrategyTesting = (data) => {
  return request.put({
    url: '/amp/strategy-testing/update',
    data
  })
}

//获得策略测试详情
export const getStrategyTesting = (params) => {
  return request.get({
    url: '/amp/strategy-testing/get',
    params
  })
}
//获得策略测试详情
export const delStrategyTesting = (params) => {
  return request.delete({
    url: '/amp/strategy-testing/delete',
    params
  })
}
//获得测试报告
export const getByTestingId = (params) => {
  return request.getOriginal({
    url: '/amp/strategy-testing-result/getByTestingId',
    params
  })
}

//进行测试任务
export const operateStatus = (params) => {
  return request.get({
    url: '/amp/strategy-testing/operation',
    params
  })
}

// 获取生成报告数据
export const getReport = (data) => {
  return request.post({
    url: '/amp/strategy-testing-result/getByTestingIds',
    data
  })
}
